package com.dao.impl;

import com.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.serivice.UserService;
@Component("userService")
public class UserServicelmpl implements UserService {
    @Autowired  //自动添加依赖
    UserDao userDao;
    @Override
    public boolean login(String name,String password){
        return userDao.login(name,password);
    }
}
